﻿package net.area80.utils 
{
	import flash.net.LocalConnection;
	
	/**
	* ...
	* @author Wissarut Pimanmassuriya
	*/
	public class GCHack
	{
		public static function run ():void {
			// unsupported hack that seems to force a full GC
			try 
			{
				var lc1:LocalConnection = new LocalConnection();
				var lc2:LocalConnection = new LocalConnection();

				lc1.connect("name");
				lc2.connect("name");
			}
			catch (e:Error)
			{
			}
		}
	}
	
}